///////////////////////////////////////////////////////////
//  DataManager.h
//  Implementation of the Class DataManager
//  Created on:      07-Sep-2013 9:06:27 PM
//  Original author: Jakkaphan Aiemcharoenjit
///////////////////////////////////////////////////////////

#if !defined(EA_7371F042_3D47_426f_A371_CD2DE4E775CD__INCLUDED_)
#define EA_7371F042_3D47_426f_A371_CD2DE4E775CD__INCLUDED_

#include "../Interfaces/IDataManager.h"

namespace Data
{
class DataManager : public IDataManager
{

protected:
	DataManager();

public:
  virtual ~DataManager();
	static IDataManager* GetInstance();
	static void Release();
	virtual IPages* GetCheckListPages();
	virtual IPages* GetTemplatePages();
	virtual void Open(const std::string& path = "data.xml");
	virtual void Save(const std::string& path = "data.xml");
private:
  static DataManager* g_instace;
  IPages* m_templatePages;
  IPages* m_checkListPages;
};
}
#endif // !defined(EA_7371F042_3D47_426f_A371_CD2DE4E775CD__INCLUDED_)
